import Axios from "@/utils/request";

//获取搜索页历史记录
export function searchRecords(data) {
    return Axios({
        url: `/userSearch/listSearch`,
        method: 'get',
    })
}

export function deleteSearchRecord() {
    return Axios({
        url: '/im/userSearch/delSearch',
        method: 'delete',
    })
}
export function searchHistoryFriend(data) {
    return Axios({
        url: `/userSearch/searchFriend`,
        method: 'get',
    })
}

export function searchHistoryRecord(data) {
    return Axios({
        url: `/userSearch/searchRecord`,
        method: 'get',
    })
}

//好友列表
export function searchFamilFriend(data) {
    return Axios({
        url: '/cms/yaseeContentStatistics/queryStatisticalInfo',
        method: 'post',
        data: data,
    })
}
//商家客服列表 /friend/shopFriends
export function shopFriends(data) {
    return Axios({
        url: '/friend/shopFriends',
        method: 'get',
        params: data,
    })
}